package com.yunsoft.notice.service.db.entity;

import com.yunsoft.notice.service.db.enums.NotifyEnum;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fld.platform.db.entity.BaseEntity;

/**
 * <p>NotifyRecord for jbd_notify_record</p><br />
 * 消息发送记录
 * @author summerrains
 * @Date 2020-04-01 16:23:36
 */
 @TableName("jbd_notify_record")
public class NotifyRecord extends BaseEntity implements Serializable {

	@TableField(exist=false)
	private static final long serialVersionUID = 1L;
	
	/***/
	@TableId(value = "nr_id", type = IdType.AUTO)
	private Long id;
	/**请求ID*/
	@TableField(value = "nr_request_id")
	private String requestId;
	/**调用方唯一标识*/
	@TableField(value = "nr_service")
	private String service;
	/**消息通知类型*/
	@TableField(value = "nr_type")
	private NotifyEnum type;
	/**标题*/
	@TableField(value = "nr_title")
	private String title;
	/**消息推送内容*/
	@TableField(value = "nr_content")
	private String content;
	/**发送方*/
	@TableField(value = "nr_sender")
	private String sender;
	/**接收方信息，根据nr_type决定*/
	@TableField(value = "nr_receiver")
	private String receiver;
	/**创建时间*/
	@TableField(value = "nr_create_date")
	private java.util.Date createDate;
	/**修改时间*/
	@TableField(value = "nr_update_date")
	private java.util.Date updateDate;
	/**发送状态，0：待发送，1：发送成功，2：发送失败*/
	@TableField(value = "nr_status")
	private Integer status;
	/**发送结果返回内容*/
	@TableField(value = "nr_result")
	private String result;

	@Override
	public String toString() {
		return "NotifyRecord{" +
				"requestId='" + requestId + '\'' +
				", service='" + service + '\'' +
				", type=" + type +
				", sender='" + sender + '\'' +
				", receiver='" + receiver + '\'' +
				", title='" + title + '\'' +
				", createDate=" + createDate +
				", updateDate=" + updateDate +
				", status=" + status +
				'}';
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	public String getRequestId() {
		return requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}

	public NotifyEnum getType() {
		return type;
	}

	public void setType(NotifyEnum type) {
		this.type = type;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getTitle() {
		return this.title;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public String getContent() {
		return this.content;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	
	public String getSender() {
		return this.sender;
	}
	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setUpdateDate(java.util.Date updateDate) {
		this.updateDate = updateDate;
	}
	
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Integer getStatus() {
		return this.status;
	}
	public void setResult(String result) {
		this.result = result;
	}
	
	public String getResult() {
		return this.result;
	}
	

}
